package lamma.lab.job.test;

/**
 * @author maxcellent
 *
 */
public class NonUniqueSerialException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Class<?> jobClazz;
	
	private int serial;
	
	public NonUniqueSerialException(Class<?> jobClazz, int serial) {
		this.jobClazz = jobClazz;
		this.serial = serial;
	}

	@Override
	public String getMessage() {
		return jobClazz + " has a duplicate step serial " + serial;
	}
}
